package com.fastCms.business.bim.manage;

import com.fastCms.business.bim.pojo.po.AreaDeviceRelPO;
import com.fastCms.business.bim.pojo.po.AreaSavePO;
import com.fastCms.business.bim.pojo.vo.AreaVO;
import com.fastCms.business.bim.pojo.vo.DeviceInfoVO;
import com.fastCms.business.frame.response.ApiResponse;

import java.util.List;

public interface AreaManageService {

    ApiResponse<Boolean> saveOrUpdateArea(AreaSavePO savePO);

    ApiResponse<AreaVO> getDetail(Integer areaId);

    ApiResponse<String> getFullAreaName(Integer areaId);

    ApiResponse<Boolean> delete(Integer areaId);

    ApiResponse<Boolean> relDevice(AreaDeviceRelPO deviceRelPO);

    ApiResponse<List<DeviceInfoVO>> getDevicesByAreaId(Integer areaId);

    ApiResponse<Boolean> deleteDeviceRel(Integer areaId, Integer deviceId);

    ApiResponse<List<AreaVO>> areaList();

    ApiResponse<List<AreaVO>> apiAreaList();

}
